package com.example.demo.service.impl;

import com.example.demo.domain.RoomShceduie;
import com.example.demo.mapper.RoomShceduieMapper;
import com.example.demo.service.RoomShceduieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomShceduieServiceImpl implements RoomShceduieService {

    @Autowired
    RoomShceduieMapper roomShceduieMapper;

    //查询所有
    @Override
    public List<RoomShceduie> findAllRoom() {
        return roomShceduieMapper.findAllRoom();
    }

    //删除数据
    @Override
    public int deleteRoom(Integer id){
        return roomShceduieMapper.deleteRoom(id);
    }

    //修改数据
    @Override
    public int updateRoom(RoomShceduie roomShceduie) {
        return roomShceduieMapper.updateRoom(roomShceduie);
    }

    //添加数据
    @Override
    public int addRoom(RoomShceduie roomShceduie) {
        return roomShceduieMapper.addRoom(roomShceduie);
    }

    //查询数据
    @Override
    public List<RoomShceduie> findRoom(RoomShceduie roomShceduie) {
        return roomShceduieMapper.findRoom(roomShceduie);
    }
}
